package inventory.service;

import com.baomidou.mybatisplus.service.IService;
import inventory.entity.Repository;
import inventory.entity.User;
import inventory.entity.bo.QueryThingsInRepositoryCondition;
import inventory.entity.po.EquipmentTerminalRepositoryPo;
import inventory.entity.po.MaterialStuffRepositoryPo;

import java.util.List;

/**
 * @author sxt
 * @create 2019-11-24 23:40
 */
public interface RepositoryService extends IService<Repository>{

/**
 * @Description: 分配仓库
 * @Param: user managerId
 * @return: void
 * @Author: jwx
 * @Date: 2019/11/25
 */
    void distributionRepository(User user, String managerId);

    /**
     * 根据条件查询设备、终端
     *
     * @param queryThingsInRepositoryCondition
     * @return
     */
    List<EquipmentTerminalRepositoryPo> selectEquipmentTerminalInRepository(QueryThingsInRepositoryCondition queryThingsInRepositoryCondition);

    /**
     * 根据条件查询 物料
     * @param queryThingsInRepositoryCondition
     * @return
     */
    List<MaterialStuffRepositoryPo> selectMaterialStuffRepository(QueryThingsInRepositoryCondition queryThingsInRepositoryCondition);

    /**
     * 根据userId查询仓库
     * @param userId
     * @return
     */
    List<Repository> selectRepositoryByUserId(String userId);
}
